<?php

namespace App\Models;

use App\Library\Models\Entity;
use Illuminate\Database\Eloquent\SoftDeletes;

class TicketModel extends Entity
{
    use SoftDeletes;

    protected $table = 'ticket';
    
    protected $casts = ['main_img_ids' => 'json', 'desc_img_ids' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'publish_id',
        'user_main_id',
        'status',
        'title',
        'file_id',
        'describe',
        'detail',
        'main_img_ids',
        'desc_img_ids',
        'tag_id',
        'video_id',
        'price',
        'discount_price',
        'limit',
        'issued_count',
        'collect_count',
        'used_count',
        'valid_start_at',
        'valid_end_at',
        'discount_start_at',
        'discount_end_at',
        'valid_day',
        'start_at',
        'end_at',
        'created_at',
        'updated_at',
        'deleted_at'
    ];
}
